package com.hellpro.lolbox.acticity.view;

import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.hellpro.lolbox.R;
import com.hellpro.lolbox.acticity.presenter.MainActivityPresenter;
import com.hellpro.lolbox.base.LolBaseActivity;

import butterknife.BindView;

public class AudioActivity extends LolBaseActivity implements IAudioActivity {


    @BindView(R.id.main_iv_back)
    ImageView mainIvBack;
    @BindView(R.id.main_iv_play)
    ImageView mainIvPlay;
    @BindView(R.id.main_iv_audio)
    Button mainIvAudio;
    @BindView(R.id.activity_audio)
    RelativeLayout activityAudio;

    @Override
    public int getLayoutId() {
        return R.layout.activity_audio;
    }

    @Override
    public void initView() {
        MainActivityPresenter presenter = new MainActivityPresenter(this);
        presenter.setAudio();
        //处理按钮返回事件
        mainIvBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    public ImageView getIvBack() {
        return mainIvBack;
    }

    @Override
    public ImageView getIvPlay() {
        return mainIvPlay;
    }

    @Override
    public Button getIvAudio() {
        return mainIvAudio;
    }

    @Override
    public Context getAudioContent() {
        return AudioActivity.this;
    }
}
